package edu.szu.huhanpeng.doodlingFight.view 
{
	import com.bit101.components.Window;
	import flash.display.DisplayObject;
	import org.puremvc.as3.interfaces.IMediator;
	import org.puremvc.as3.interfaces.INotifier;
	import org.puremvc.as3.patterns.mediator.Mediator;
	
	/**
	 * ...
	 * @author Huhanpeng
	 */
	public class GameWindowMed extends Mediator implements IMediator, INotifier 
	{
		public static const NAME:String = "gameWindowMed";
		
		public function GameWindowMed(window:Window):void
		{
			super( NAME, window );
		}
		
		public function addChild(child:DisplayObject):DisplayObject
		{
			return window.addChild(child);
		}
		
		public function disableInteract():void 
		{
			window.enabled = false;
		}
		
		public function enableInteract():void 
		{
			window.enabled = true;
		}
		
		protected function get window():Window
		{
			return viewComponent as Window;
		}
		
		
		
	}

}